package ve.com.fitsoft.eicb.encuesta.web.mb;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.theme.ThemeDisplay;

@ManagedBean (name="userProperties")
@SessionScoped
public class UserPropertiesMB {

	private long companyId;
	private long groupId;
	
	public UserPropertiesMB(){
		ThemeDisplay themeDisplay = 
				(ThemeDisplay) 
				FacesContext.getCurrentInstance()
				.getExternalContext()
				.getRequestMap()
				.get(WebKeys.THEME_DISPLAY);
		this.companyId = themeDisplay.getCompanyId();
		this.groupId = themeDisplay.getCompanyGroupId();
	}
	
	public long getCompanyId() {
		
		return companyId;
	}
	public long getGroupId() {
		return groupId;
	}
	
	
}
